$(function(){
  $("#faqList").find("li h3").click(function(){
    $(this).parent().toggleClass("active")
    $(this).next().slideToggle()
  })
  $("#connectWallet").click(function(){
    if(window.ethereum){
      var $this = $(this)
      var $account = $("#account")
      window.ethereum.request({ method: 'eth_requestAccounts' }).then(function(accounts){
        const account = accounts[0]
        $this.addClass("disabled-btn").find("small").text("Mint Coming Soon")
        $account.text(account.slice(0,15)+"...").attr("title",account).show()
      })
    }
  })
})